﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OrderManager
{
    public partial class ConfirmationWindow : Form
    {
        public ConfirmationWindow(string message)
        {
            InitializeComponent();

            this.informationBox.Text = message;

            this.confirmBtn.Location = new Point(this.confirmBtn.Location.X, this.informationBox.Location.Y + this.informationBox.Height + 10);
            this.cancelBtn.Location = new Point(this.cancelBtn.Location.X, this.informationBox.Location.Y + this.informationBox.Height + 10);
        }

        public ConfirmationWindow(string title, string message)
        {
            InitializeComponent();

            this.informationBox.Text = message;
            this.Text = title;

            this.confirmBtn.Location = new Point(this.confirmBtn.Location.X, this.informationBox.Location.Y + this.informationBox.Height + 10);
            this.cancelBtn.Location = new Point(this.cancelBtn.Location.X, this.informationBox.Location.Y + this.informationBox.Height + 10);

        }

        /*
        private void Confirm(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Yes;
            this.Close();
        }

        private void Cancel(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.No;
            this.Close();
        }
        */
    }
}
